package com.air.common.controller.imp;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.air.common.controller.ICommonController;
import com.air.common.util.BasicAppConstant;

@Controller
@RequestMapping("/common")
public class CommonControllerImp extends BaseControllerImp implements
		ICommonController {

	@Override
	@RequestMapping("jsonResponse")
	public ModelAndView jsonResponse(HttpServletRequest request,
			HttpServletResponse response) {
		ModelAndView mav = new ModelAndView();
		mav.setViewName(BasicAppConstant._VIEW_COMMON_JSON);
		return mav;
	}
	
	@RequestMapping("error")
	public ModelAndView errorPage(HttpServletRequest request,
			HttpServletResponse response) {
		ModelAndView mav = new ModelAndView();
		mav.setViewName(BasicAppConstant._VIEW_COMMON_ERROR);
		return mav;
	}

}
